import request from '@/utils/request'

// 查询回款明细列表
export function listHkinfo(query) {
  return request({
    url: '/business/hkinfo/list',
    method: 'get',
    params: query
  })
}

// 查询回款明细详细
export function getHkinfo(id) {
  return request({
    url: '/business/hkinfo/' + id,
    method: 'get'
  })
}

// 新增回款明细
export function addHkinfo(data) {
  return request({
    url: '/business/hkinfo',
    method: 'post',
    data: data
  })
}

// 修改回款明细
export function updateHkinfo(data) {
  return request({
    url: '/business/hkinfo',
    method: 'put',
    data: data
  })
}

// 删除回款明细
export function delHkinfo(id) {
  return request({
    url: '/business/hkinfo/' + id,
    method: 'delete'
  })
}
